package com.zj.executor.statement;

import com.zj.executor.result.ResultHandler;
import com.zj.mapping.BoundSql;
import com.zj.mapping.MappedStatement;

import java.util.List;

public interface StatementHandler {


    <E> List<E> query(MappedStatement mappedStatement, BoundSql boundSql, ResultHandler resultHandler, Object ... param) throws  Exception;

    Integer update(MappedStatement mappedStatement, BoundSql boundSql, Object... params) throws Exception;
}
